package top.jlzhou.boot;

import java.util.Date;
import java.util.Map;

//import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import lombok.extern.slf4j.Slf4j;
import top.jlzhou.R;

/**
 * 
 * @ClassName	PepayApplication
 * @Description	TODO(移动端APP后台程序入口)
 * @author	J.L.Zhou
 * @date	2019年2月19日 下午7:15:43
 * @version 	V1.0
 * @Copyright	2019 PEPay Inc. All rights reserved. 
 * 	注意：本内容仅限于公司内部传阅，禁止外泄以及用于其他的商业目
 */
@SpringBootApplication
@Slf4j
//@MapperScan("com.pepay.app.mapper")
@Controller
public class BootApplication {

	public static void main(String[] args) {
		SpringApplication.run(BootApplication.class, args);
	}
	
	@RequestMapping("/velocity")
	public void doVelocity(String name,Map<String, Object> r) {
		log.info("velocity");
		r.put("d", new Date());
		r.put("name", name);
	}

}
